package com.example.yingjiguanli_demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yingjiguanli_demo.pojo.*;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author scj
 * @since 2024-11-04
 */
public interface IQuestionsService extends IService<Questions> {
    Result<T> importQuestions(List<Questions> questions, List<Options> options,Integer subjectId);
    Result<T> importQuestionsFromExcel(MultipartFile file,Integer subjectId);
    Result<List<Questions>> getQuestionsForUser(int subjectId,int limit);

    List<AnswerResult> checkAndRecordAnswers(int userId, List<AnswerDTO> answerDTOs) ;
}
